There's a function-wide variable rc, so no need to re-declare it in
individual case handling blocks.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
struct xen_add_to_physmap xatp;
unsigned long prev_mfn, mfn = 0, gpfn;
struct domain *d;
- int rc;
if ( copy_from_guest(&xatp, arg, 1) )
return -EFAULT;
{
struct xen_foreign_memory_map fmap;
struct domain *d;
- int rc;
if ( copy_from_guest(&fmap, arg, 1) )
return -EFAULT;
struct memory_map_context ctxt;
XEN_GUEST_HANDLE(e820entry_t) buffer;
unsigned int i;
- int rc;
if ( !IS_PRIV(current->domain) )
return -EINVAL;